package kr.hkit.powerjava.chaper04;

import java.util.Scanner;

public class Receipt {

	public static void main(String[] args) {
		
		int pprice;
		int rprice;
		int vat;
		int change;
		
		Scanner input = new Scanner(System.in);
		System.out.print("받은 돈: ");
		rprice = input.nextInt();
	
		System.out.print("상품의 총액: ");
		pprice = input.nextInt();
		
		vat = pprice / 10 ;
		change = rprice - pprice;
		
		System.out.println("부가세: " + vat);
		System.out.println("잔돈: " + change);
		
	}
}
